<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主轴的对齐方式</title>
    <style>
        .box{
            background-color: yellow;
            display: flex;
            justify-content: flex-start;
            justify-content: flex-end;
            justify-content: center;
            justify-content: space-evenly;
            justify-content: space-around;
            justify-content: space-between;
        }
        .item{
            width: 100px;
            height: 100px;
            border: 2px solid red;
            font-size: 30px;
        }
        .box2{
            height: 600px;
            background-color: #0ff;
            display: flex;

            flex-direction: column;
            justify-content: flex-start;
            justify-content: flex-end;
            justify-content: center;
            justify-content: space-evenly;
            justify-content: space-around;
            justify-content: space-between;
        }
    </style>
</head>
<body>
<div class="box">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
</div>

<div class="box2">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
</div>
</body>
</html>